package com.huisenky.smallidea.convert.comm;

import com.huisenky.smallidea.convert.interfaces.InjectField;

public class CommInjectType {
    public static class ReplaceCode2Name implements InjectField {
        @Override
        public String injectField(String fieldName) {
            return fieldName.endsWith("Code") ? fieldName.substring(0, fieldName.length() - 4) + "Name" : null;
        }
    }

    public static class Origin implements InjectField {
        @Override
        public String injectField(String fieldName) {
            return fieldName;
        }
    }

    public static class Value implements InjectField {
        @Override
        public String injectField(String fieldName) {
            return fieldName + "Value";
        }
    }

}
